<?php
	session_start();
	require_once("../Library/Loader/Autoloader.php");
	$autoloader = \Library\Loader\Autoloader::getInstance();
	$autoloader::setBasePath(str_replace("Public", "", __DIR__));
	\Application\Configs\Setting::getInstance();
	
	$bd = \Library\Model\Connexion::getInstance();
	$bd::addConnexion('localhost', $bd::connectDB());
	//mysql_query("select * news");
	$router = \Library\Router\Router::getInstance();
	$router::dispatchPage($_GET['page']);
?>